<%-- 
    Document   : index
    Created on : May 9, 2009, 9:26:07 PM
    Author     : mamat-dev
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Server Capture Image dari J2ME</title>
    </head>
    <body>
        <h1>Server Capture Image dari J2ME</h1>
        <h3>Directories</h3>
        <ul>
            <%
        String root = "D:/Image/";
        java.io.File file;
        java.io.File dir = new java.io.File(root);

        String[] list = dir.list();

        if (list.length > 0) {

            for (int i = 0; i < list.length; i++) {
                file = new java.io.File(root + list[i]);
                if (file.isDirectory()) {
            %>
            <li><%=list[i]%></li><br>
            <%
                }
            }
        }
            %>
        </ul>

    </body>
</html>
